import request from '@/utils/request'
import { encryptionData } from '@/utils/com'
import Qs from 'qs'

// join-list

/* 获取加盟列表 */
export function getJoinList(data) {
  return request({
    url: '/jcdSys/signUp/page',
    method: 'get',
    headers: encryptionData(data, '/signUp/page'),
    params: data
  })
}

/* 加盟列表-删除 */
export function deleteJoin(data) {
  return request({
    url: `/jcdSys/signUp/delete/${data.id}`,
    method: 'DELETE',
    headers: encryptionData({}, '/signUp/delete'),
    // data: Qs.stringify(data)
  })
}

// metting-list

/* 获取参会列表 */
export function getMeetingList(data) {
  return request({
    url: '/jcdGys/getMeetingList',
    method: 'get',
    headers: encryptionData(data, '/getMeetingList'),
    params: data
  })
}

/* 参会列表-删除 */
export function deleteMeeting(data) {
  return request({
    url: '/jcdGys/deleteMeeting',
    method: 'post',
    headers: encryptionData(data, '/deleteMeeting'),
    data: Qs.stringify(data)
  })
}

// vip-apply

/* 获取会员报名列表 */
export function getVipApplyList(data) {
  return request({
    url: '/jcdGys/getVipApplyList',
    method: 'get',
    headers: encryptionData(data, '/getVipApplyList'),
    params: data
  })
}

/* 会员报名-删除 */
export function deleteVipApply(data) {
  return request({
    url: '/jcdGys/deleteVipApply',
    method: 'post',
    headers: encryptionData(data, '/deleteVipApply'),
    data: Qs.stringify(data)
  })
}